package cn.lili.init;

import cn.lili.modules.payment.kit.plugin.wechat.WechatV3Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class WechatInitRunner implements ApplicationRunner {
    @Override
    public void run(ApplicationArguments args) throws Exception {
        try {
            WechatV3Api.init();
        } catch (Exception e) {
            log.error("微信V3接口初始化失败", e);
        }
    }
}
